package com.tensquare.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 文章
 * @Author：XiaoBing
 * @Date：2021/1/4 15:11
 * @Version：1.0
 */
@ApiModel(value = "com-tensquare-article-entity-Article")
@TableName(value = "tb_article")
public class Article implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 专栏ID
     */
    @TableField(value = "columnid")
    @ApiModelProperty(value = "专栏ID")
    private String columnid;

    /**
     * 用户ID
     */
    @TableField(value = "userid")
    @ApiModelProperty(value = "用户ID")
    private String userid;

    /**
     * 标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 文章正文
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "文章正文")
    private String content;

    /**
     * 文章封面
     */
    @TableField(value = "image")
    @ApiModelProperty(value = "文章封面")
    private String image;

    /**
     * 发表日期
     */
    @TableField(value = "createtime")
    @ApiModelProperty(value = "发表日期")
    private Date createtime;

    /**
     * 修改日期
     */
    @TableField(value = "updatetime")
    @ApiModelProperty(value = "修改日期")
    private Date updatetime;

    /**
     * 是否公开
     */
    @TableField(value = "ispublic")
    @ApiModelProperty(value = "是否公开")
    private String ispublic;

    /**
     * 是否置顶
     */
    @TableField(value = "istop")
    @ApiModelProperty(value = "是否置顶")
    private String istop;

    /**
     * 浏览量
     */
    @TableField(value = "visits")
    @ApiModelProperty(value = "浏览量")
    private Integer visits;

    /**
     * 点赞数
     */
    @TableField(value = "thumbup")
    @ApiModelProperty(value = "点赞数")
    private Integer thumbup;

    /**
     * 评论数
     */
    @TableField(value = "`comment`")
    @ApiModelProperty(value = "评论数")
    private Integer comment;

    /**
     * 审核状态
     */
    @TableField(value = "`state`")
    @ApiModelProperty(value = "审核状态")
    private String state;

    /**
     * 所属频道
     */
    @TableField(value = "channelid")
    @ApiModelProperty(value = "所属频道")
    private String channelid;

    /**
     * URL
     */
    @TableField(value = "url")
    @ApiModelProperty(value = "URL")
    private String url;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "类型")
    private String type;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_COLUMNID = "columnid";

    public static final String COL_USERID = "userid";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_IMAGE = "image";

    public static final String COL_CREATETIME = "createtime";

    public static final String COL_UPDATETIME = "updatetime";

    public static final String COL_ISPUBLIC = "ispublic";

    public static final String COL_ISTOP = "istop";

    public static final String COL_VISITS = "visits";

    public static final String COL_THUMBUP = "thumbup";

    public static final String COL_COMMENT = "comment";

    public static final String COL_STATE = "state";

    public static final String COL_CHANNELID = "channelid";

    public static final String COL_URL = "url";

    public static final String COL_TYPE = "type";

    /**
     * 获取ID
     * @return id - ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置ID
     * @param id ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取专栏ID
     * @return columnid - 专栏ID
     */
    public String getColumnid() {
        return columnid;
    }

    /**
     * 设置专栏ID
     * @param columnid 专栏ID
     */
    public void setColumnid(String columnid) {
        this.columnid = columnid;
    }

    /**
     * 获取用户ID
     * @return userid - 用户ID
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 设置用户ID
     * @param userid 用户ID
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 获取标题
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取文章正文
     * @return content - 文章正文
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置文章正文
     * @param content 文章正文
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取文章封面
     * @return image - 文章封面
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置文章封面
     * @param image 文章封面
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取发表日期
     * @return createtime - 发表日期
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * 设置发表日期
     * @param createtime 发表日期
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /**
     * 获取修改日期
     * @return updatetime - 修改日期
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * 设置修改日期
     * @param updatetime 修改日期
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * 获取是否公开
     * @return ispublic - 是否公开
     */
    public String getIspublic() {
        return ispublic;
    }

    /**
     * 设置是否公开
     * @param ispublic 是否公开
     */
    public void setIspublic(String ispublic) {
        this.ispublic = ispublic;
    }

    /**
     * 获取是否置顶
     * @return istop - 是否置顶
     */
    public String getIstop() {
        return istop;
    }

    /**
     * 设置是否置顶
     * @param istop 是否置顶
     */
    public void setIstop(String istop) {
        this.istop = istop;
    }

    /**
     * 获取浏览量
     * @return visits - 浏览量
     */
    public Integer getVisits() {
        return visits;
    }

    /**
     * 设置浏览量
     * @param visits 浏览量
     */
    public void setVisits(Integer visits) {
        this.visits = visits;
    }

    /**
     * 获取点赞数
     * @return thumbup - 点赞数
     */
    public Integer getThumbup() {
        return thumbup;
    }

    /**
     * 设置点赞数
     * @param thumbup 点赞数
     */
    public void setThumbup(Integer thumbup) {
        this.thumbup = thumbup;
    }

    /**
     * 获取评论数
     * @return comment - 评论数
     */
    public Integer getComment() {
        return comment;
    }

    /**
     * 设置评论数
     * @param comment 评论数
     */
    public void setComment(Integer comment) {
        this.comment = comment;
    }

    /**
     * 获取审核状态
     * @return state - 审核状态
     */
    public String getState() {
        return state;
    }

    /**
     * 设置审核状态
     * @param state 审核状态
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 获取所属频道
     * @return channelid - 所属频道
     */
    public String getChannelid() {
        return channelid;
    }

    /**
     * 设置所属频道
     * @param channelid 所属频道
     */
    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    /**
     * 获取URL
     * @return url - URL
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置URL
     * @param url URL
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取类型
     * @return type - 类型
     */
    public String getType() {
        return type;
    }

    /**
     * 设置类型
     * @param type 类型
     */
    public void setType(String type) {
        this.type = type;
    }
}